package lab02.Test36;

<<<<<<< HEAD
public class Test {
    public static void main(String[] args) {

        Student[] students =new Student[5];



=======

public class Test {
    public static void main(String[] args) {

        Student[] students=new Student[5];

        students[0]=new Undergraduate();
>>>>>>> 50ca08f6b9b89216641cb11ef9adb6e22dd31576
        students[0].name="张三";
        students[0].type="本科生";
        students[0].scores[0]=90;
        students[0].scores[1]=95;
        students[0].scores[2]=100;

<<<<<<< HEAD

        students[0].name="李四";
        students[0].type="本科生";
        students[0].scores[0]=80;
        students[0].scores[1]=85;
        students[0].scores[2]=90;


        students[0].name="王五";
        students[0].type="研究生";
        students[0].scores[0]=82;
        students[0].scores[1]=85;
        students[0].scores[2]=88;


        students[0].name="赵六";
        students[0].type="本科生";
        students[0].scores[0]=75;
        students[0].scores[1]=82;
        students[0].scores[2]=87;


        students[0].name="陈七";
        students[0].type="研究生";
        students[0].scores[0]=80;
        students[0].scores[1]=82;
        students[0].scores[2]=84;
        System.out.println("姓名   类型   成绩等级");
        for ( int i=0;i< students.length;i++) {
            System.out.println(students[i].name + "" + students[i].type + "" + students[i].calGrade());
        }
=======
        students[1]=new Undergraduate();
        students[1].name="李四";
        students[1].type="本科生";
        students[1].scores[0]=80;
        students[1].scores[1]=85;
        students[1].scores[2]=90;

        students[2]=new Postgraduate();
        students[2].name="王五";
        students[2].type="研究生";
        students[2].scores[0]=82;
        students[2].scores[1]=85;
        students[2].scores[2]=88;

        students[3]=new Undergraduate();
        students[3].name="赵六";
        students[3].type="本科生";
        students[3].scores[0]=75;
        students[3].scores[1]=82;
        students[3].scores[2]=87;

        students[4]=new Postgraduate();
        students[4].name="陈七";
        students[4].type="研究生";
        students[4].scores[0]=80;
        students[4].scores[1]=82;
        students[4].scores[2]=84;

        System.out.println("姓名   类别   成绩等级");
        for(int i=0;i<5;i++){
            System.out.println(students[i].name+"   "+
                    students[i].type+"   "+
                    students[i].calGrade());
        }

>>>>>>> 50ca08f6b9b89216641cb11ef9adb6e22dd31576
    }

}
